//
//  Brands_BrandsMainBrandSpecial_CollectionViewCell_WX.m
//  ZITHER
//
//  Created by weixin on 2019/4/11.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Brands_BrandsMainBrandSpecial_CollectionViewCell_WX.h"

@implementation Brands_BrandsMainBrandSpecial_CollectionViewCell_WX

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = RandomColor;
        [self addSubview:self.TB];
        
        [self.TB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self).offset(0);
        }];
        
    }
    return self;
}

-(void)setIndexTbv:(NSInteger)indexTbv{
    _indexTbv = indexTbv;
    
    self.TB.indexTbv = indexTbv;
}

- (Brands_BrandsMainBrandSpecia_Tbv_WX *)TB{
    if (!_TB) {
        _TB = [[Brands_BrandsMainBrandSpecia_Tbv_WX alloc]initializeFrame:CGRectMake(0, 0, 1, 1) isMj:0 isEstimatedRowHeight:YES addRegisterNib:@[@"Brands_BrandsMainBrandSpecia_Cell_WX"]];
    }
    return _TB;
}

-(void)setModel:(GoodsBrandTagstListSubModel *)model{
    _model = model;
    self.TB.model = model;
}
@end
